/**
 * related to start.ui
 * 
 * @Author : wzgl5533
 * @Timestamp : 2017-07-17
 */
//启动页
var myAnimation = require("anim/myAnimation");
var do_App = sm("do_App");
var do_ImageView_bg = ui("do_ImageView_bg");
var globalParams = require("global_params");

//引入Js
var dojs = require("dojs");

var scaleAnim = mm("do_Animation");
scaleAnim.fillAfter = false;

var scaleAnimParams = myAnimation.getScaleParams();
scaleAnimParams.duration = 1000;
scaleAnimParams.autoReverse = true;
scaleAnimParams.scaleFromX = 1;
scaleAnimParams.scaleFromY = 1;
scaleAnimParams.scaleToX = 1.2;
scaleAnimParams.scaleToY = 1.2;
scaleAnimParams.pivotX = 0.5;
scaleAnimParams.pivotY = 0.5;

scaleAnim.scale(scaleAnimParams, "a1");

globalParams.setDataLabel();
globalParams.setColor();
globalParams.setURL();

do_ImageView_bg.animate(scaleAnim,500, function() {
	//打开欢迎页面
	dojs.core.openPage({
		id:"welcomePage",
		source: "source://view/welcome/src/welcome.ui",
		animationType:"fade",
		statusBarState: "hide"
	});
	do_App.closePage();
})



